/*     */ package com.newcrm.webapi;
/*     */ 
/*     */ import com.newcrm.bean.ProductInfo;
/*     */ import com.newcrm.bean.User;
/*     */ import com.newcrm.config.Config;
/*     */ import java.io.IOException;
/*     */ import java.io.PrintWriter;
/*     */ import javax.servlet.ServletException;
/*     */ import javax.servlet.http.HttpServletRequest;
/*     */ import javax.servlet.http.HttpServletResponse;
/*     */ 
/*     */ public class SidebarServlet extends AbstractHttpServlet
/*     */ {
/*     */   private static final long serialVersionUID = -5884291072463441339L;
/*     */ 
/*     */   public void doGet(HttpServletRequest request, HttpServletResponse response)
/*     */     throws ServletException, IOException
/*     */   {
/*  45 */     response.setContentType("text/html; charset=UTF-8");
/*  46 */     PrintWriter out = response.getWriter();
/*  47 */     if (!super.checkLogin(request)) {
/*  48 */       out.flush();
/*  49 */       return;
/*     */     }
/*     */ 
/*  52 */     ProductInfo productInfo = Config.getInstance().productInfo;
/*     */ 
/*  54 */     String logoUrl = request.getContextPath() + "/images/logo2" +
/*  55 */       productInfo.logoImageExtInfo + ".png";
/*     */ 
/*  57 */     out.println("<div class=\"sidebar\" id=\"sidebar\">");
/*  58 */     out.println("<span class=\"logo\">");
/*  59 */     out.println("<a class=\"logoimg\" href=\"#\"><img src=\"" + logoUrl + 
/*  60 */       "\"></a>");
/*  61 */     out.println("<a title=\"展开左侧菜单\" class=\"open-menu\" id=\"openSidebar_link\" title=\"\" href=\"#\">&nbsp;<i class=\"fa fa-navicon fa-2x\"></i>&nbsp;</a>");
/*  62 */     out.println("</span>");
/*  63 */     out.println("<ul>");
/*  64 */     out.println("<li title=\"工作台\" id=\"dashboardMenu\"><a href=\"" + 
/*  65 */       request.getContextPath() + 
/*  66 */       "/dashboard\"><i class=\"fa fa-dashboard fa-fw\"></i>&nbsp;<span>工作台</span></a></li>");
/*  67 */     out.println("<li title=\"客户信息\" id=\"partiesMenu\"><a href=\"" + 
/*  68 */       request.getContextPath() + 
/*  69 */       "/parties\"><i class=\"fa fa-users fa-fw\"></i>&nbsp;<span>客户信息</span></a></li>");
/*  70 */     out.println("<li title=\"任务\" id=\"tasksMenu\"><a href=\"" + 
/*  71 */       request.getContextPath() + 
/*  72 */       "/task\"><i class=\"fa fa-tasks fa-fw\"></i>&nbsp;<span>任务</span></a></li>");
/*  73 */     out.println("<li title=\"销售机会\" id=\"dealsMenu\"><a href=\"" + 
/*  74 */       request.getContextPath() + 
/*  75 */       "/deals\"><i class=\"fa fa-rmb fa-fw\"></i>&nbsp;<span>销售机会</span></a></li>");
/*  76 */     out.println("<li title=\"检索备注\" id=\"searchMenu\"><a href=\"" + 
/*  77 */       request.getContextPath() + 
/*  78 */       "/searchnote\"><i class=\"fa fa-search fa-fw\"></i>&nbsp;<span>检索备注</span></a></li>");
/*     */ 
/*  80 */     User user = super.getLoginUser(request);
/*  81 */     if ((user.isAdmin) || (user.isGroupAdmin)) {
/*  82 */       out.println("<li title=\"统计分析\" id=\"reportMenu\"><a href=\"" + 
/*  83 */         request.getContextPath() + 
/*  84 */         "/report\"><i class=\"fa fa-bar-chart-o fa-fw\"></i>&nbsp;<span>统计分析</span></a></li>");
///*  85 */       out.println("<li title=\"外呼统计\" id=\"callReportMenu\"><a href=\"" +
///*  86 */         request.getContextPath() +
///*  87 */         "/voipReport\"><i class=\"fa fa-headphones fa-fw\"></i>&nbsp;<span>外呼统计</span></a></li>");
/*     */     }
///*  89 */     out.println("<li title=\"精品推荐\" id=\"recommendedMenu\"><a href=\"" +
///*  90 */       request.getContextPath() +
///*  91 */       "/recommended\"><i class=\"fa fa-thumbs-o-up fa-fw\"></i>&nbsp;<span>精品推荐</span></a></li>");
///*  92 */     out.println("<li title=\"在线帮助\" id=\"help\"><a href=\"" +
///*  93 */       productInfo.helpFile +
///*  94 */       "\" target=\"_blank\"><i class=\"fa fa-info-circle fa-fw\"></i>&nbsp;<span>在线帮助</span></a></li>");
/*  95 */     out.println("</ul>");
/*  96 */     out.println("<div class=\"appdownload\">");
/*  97 */     out.println("<a class=\"open-popup-link\" href=\"#app-popup\" title=\"下载手机版\"><i class=\"fa fa-mobile\"></i><span>下载手机版</span></a>");
/*  98 */     out.println("</div>");
/*  99 */     out.println("</div>");
/* 100 */     out.flush();
/*     */   }
/*     */ 
/*     */   protected String getTagkey()
/*     */   {
/* 105 */     return "/sidebar";
/*     */   }
/*     */ 
/*     */   protected AbstractAction getAddAction()
/*     */   {
/* 110 */     return null;
/*     */   }
/*     */ 
/*     */   protected AbstractAction getListAction()
/*     */   {
/* 115 */     return null;
/*     */   }
/*     */ 
/*     */   protected AbstractAction getShowAddPageAction()
/*     */   {
/* 120 */     return null;
/*     */   }
/*     */ 
/*     */   protected AbstractAction getUpdateAction(String id)
/*     */   {
/* 125 */     return null;
/*     */   }
/*     */ 
/*     */   protected AbstractAction getShowConfirmDestroyAction(String id)
/*     */   {
/* 130 */     return null;
/*     */   }
/*     */ 
/*     */   protected AbstractAction getDeleteAction(String id)
/*     */   {
/* 135 */     return null;
/*     */   }
/*     */ 
/*     */   protected AbstractAction getShowAction(String id)
/*     */   {
/* 140 */     return null;
/*     */   }
/*     */ 
/*     */   protected AbstractAction getShowUpdatePageAction(String id)
/*     */   {
/* 145 */     return null;
/*     */   }
/*     */ }

/* Location:           C:\E\referenceProject\CRM参考\qikebao\WEB-INF\lib\qikebao.jar
 * Qualified Name:     com.newcrm.webapi.SidebarServlet
 * JD-Core Version:    0.6.1
 */